package lab02.test37;

/**
 * Created by dell on 2017/11/15.
 */
public class Graduate extends Student  {
    Graduate ( String s,double a, double b, double c){
        this.name=s;
        this.a=a;
        this.b=b;
        this.c=c;
        this.average=(a+b+c)/3;
}
void grade(){
      if(this.average>80)
          System.out.println("the average is:"+this.average+"通过");
      else
          System.out.println("the average is:"+this.average+"不通过");
    }
}
